package com.szlanyou.test;

import android.util.Log;

/**
 * @author Aivin
 */
public class LyLog {
    public static void showLog(String msg) {
        StackTraceElement[] stackTrace = new Exception().getStackTrace();
        String methodName = stackTrace[1].getMethodName();
        Log.i("dengpanwen", "[" + methodName + "]--->" + msg);
    }
    public static void showErrorLog(String msg) {
        StackTraceElement[] stackTrace = new Exception().getStackTrace();
        String methodName = stackTrace[1].getMethodName();
        Log.e("dengpanwen", "[" + methodName + "]--->" + msg);
    }
}
